package spring.library.LibraryProject.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestController
@RequestMapping("t")
public class testController {

    @RequestMapping("t1")
    public String t1() {
        int i = 1 / 0;
        return "t1";
    }

    @RequestMapping("t2")
    public String t2() {
        int[] a = new int[2];
        int c = a[3];
        return "t2";
    }
}
